package com.itheima.Controller;

import com.itheima.pojo.OperateQueryParam;
import com.itheima.pojo.PageTwo;
import com.itheima.pojo.Result;
import com.itheima.service.OperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OperateNumController {

    @Autowired
    private OperService operService;


    @GetMapping("/log/page")
    public Result page(OperateQueryParam operateQueryParam){
       PageTwo pageTwo= operService.page(operateQueryParam);
        return Result.success(pageTwo);




    }

}
